﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 派工表
    /// </summary>
    [Table("PB_Dispatch")]
    public partial class PB_Dispatch
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 员工Id
        /// </summary>
        public String StaffId { get; set; }

        /// <summary>
        /// 员工姓名
        /// </summary>
        public String StaffName { get; set; }

        /// <summary>
        /// 工单号
        /// </summary>
        public string WorkOrderNo { get; set; }

        /// <summary>
        /// 组织Id
        /// </summary>
        public String DeptId { get; set; }

        /// <summary>
        /// 班别ID
        /// </summary>
        public String TeamType { get; set; }

        /// <summary>
        /// 派工日期
        /// </summary>
        public DateTime? DispatchDate { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public String CreatorRealName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 是否已删
        /// </summary>
        public Boolean? Deleted { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public string QrCode { get; set; }
        /// <summary>
        /// 派工状态0正常 1作废 2补制  3改制
        /// </summary>
        public int? State { get; set; }
      
        /// <summary>
        /// 流转单id
        /// </summary>
        public string CirBillId { get; set; }
    }
}